import {createRouter, createWebHashHistory} from 'vue-router'
export default createRouter({
    'history':createWebHashHistory(),
    'routes':[
        {
            path:"/",
            redirect:"index"
        },
        {
            path:'/index',
            name:'index',
            component: ()=>import("../pages/index.vue")
        },
        {
            path:'/cart',
            name:'cart',
            component: ()=>import("../pages/cart.vue")
        },
        
        {
            path:'/feedback',
            name:'feedback',
            component: ()=>import("../pages/feedback.vue")
        },
        {
            path:'/list',
            name:'list',
            component: ()=>import("../pages/list.vue")
        },
        {
            path:'/detail',
            name:'detail',
            component: ()=>import("../pages/detail.vue")
        },
        {
            path:'/my',
            name:'my',
            component: ()=>import("../pages/my.vue")
        },
        {
            path:'/userInfo',
            name:'userInfo',
            component: ()=>import("../pages/userInfo.vue")
        },
        {
            path:'/login',
            name:'login',
            component: ()=>import("../pages/login.vue")
        },
        {
            path:'/register',
            name:'register',
            component: ()=>import("../pages/register.vue")
        },
    ]
})
